package com.digital.welcome.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.digital.welcome.entity.UserRole;
import com.digital.welcome.mapper.UserRoleMapper;
import com.digital.welcome.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService {

    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    public List<String> getAllRoleByUserName(String username) {
        return userRoleMapper.getAllRoleByUserName(username);
    }
}
